
/*
The following code replicates Table A1 in the appendix
reports the summary statistics

*/

use "D:\Nanjing\2019\pollution2\submission\files for submission\data\summary",clear
*--------------------------------------------------------
*1. all firms in industry-dataset: column 1 of Table A1
*--------------------------------------------------------
sum totaloutput export tfp_op_y real_cap aemployment cic_tariff_lag ventilation if ///
sample=="industry"


*-----------------------------------------------------
*2. unmatched manufacturing:  column 2of Table A1
*-----------------------------------------------------
sum totaloutput export tfp_op_y real_cap aemployment cic_tariff_lag ventilation ///
if indc_merge==2& sample=="unmatch"

*--------------------------------------------------------
*3. full environmental dataset:  column 3 of Table A1
*-------------------------------------------------------------
sum so2_emission dust1_emission clean_dummy_so2 clean_dummy_dust ventilation ///
if sample=="full_env"

*--------------------------------------------------------------
* 4. unmached environmental dataset:  column 4 of Table A1
*---------------------------------------------------------------

sum so2_emission dust1_emission clean_dummy_so2 clean_dummy_dust cic_tariff_lag ventilation ///
 if indc_merge==1&sample=="unmatch"

 
*------------------------------------------------------------------
* 5. matched sample:  column 5 of Table A1
*------------------------------------------------------------------

sum totaloutput export tfp_op_y real_cap aemployment if sample=="match"


sum so2_emission dust1_emission cod_emission nh3n_emission if sample=="match"

sum clean_dummy_so2 clean_dummy_dust clean_dummy_cod clean_dummy_nh3n  if sample=="match"


sum cic_tariff_lag if sample=="match"

